package com.hg.oa.util;

import android.app.Activity;
import android.content.Intent;
import android.support.v4.app.ActivityOptionsCompat;

/**
 * Created by fengxiang on 2016/9/27.
 */
public class ActivityHelper {


    public static void startBySceneTransitionAnimation(Activity activity, Intent intent) {
        ActivityOptionsCompat transitionActivityOptions = ActivityOptionsCompat.makeSceneTransitionAnimation(activity);
        activity.startActivity(intent, transitionActivityOptions.toBundle());
    }
}
